<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('offering')} > ${i18n.getMessage('attendance')} > ${i18n.getMessage('report')}">
	<a href="#" onclick="cc('offering/showInfoAttendance.sgt?offeringId=${offeringId}')">${i18n.getMessage('attendance')}</a>
	- <a href="#" onclick="cc('offering/showInfoOffering.sgt?id=${offeringId}')">${i18n.getMessage('offering')}</a>
</@showTitle>

<div id="error" style="display:none"></div>

<form action="offering/showWeeklyReportAttendance.sgt" validator="offering/validateAttendanceReport.sgt" onsubmit="popupSubmitFormValidation(this); return false;" onreset="$('error').hide()">
	<input type="hidden" name="offeringId" value="${offeringId}"/>
	<input type="hidden" name="maxWeek" value="${maxWeek}"/>
	<table id="dataTable" cellspacing="5" cellpadding="0" align="center">
		<tr>
			<td class="name"><@required/>${i18n.getMessage('fromWeek')}:</td>
			<td><input type="text" name="fromWeek" style="width:200px"/></td>
		</tr>
		<tr>
			<td class="name"><@required/>${i18n.getMessage('toWeek')}:</td>
			<td><input type="text" name="toWeek" style="width:200px"/> <a style="font-style:italic" href="#" onclick="document.forms[0].toWeek.value='${maxWeek!}'">Insert end week</a> </td>
		</tr>
		<tr>
			<td class="name"></td>
			<td>
				<input type="submit" value="${i18n.getMessage('report')}" class="button_style"/>
			</td>
		</tr>
	</table>
</form>